gtk4.git
10 years agoGtkApplicationWindow: the help_overlay is nullable
Timm Bäder [Sat, 14 Nov 2015 21:56:01 +0000 (22:56 +0100)]
GtkApplicationWindow: the help_overlay is nullable

10 years agoGtkApplicationWindow: Fix typos
Timm Bäder [Sat, 14 Nov 2015 21:19:58 +0000 (22:19 +0100)]
GtkApplicationWindow: Fix typos

10 years agoAdwaita: Fix window shadow size
Matthias Clasen [Sat, 14 Nov 2015 17:55:34 +0000 (12:55 -0500)]
Adwaita: Fix window shadow size

Ensure that the shadow extents don't change as we go to backdrop,
to prevent windows from jumping.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:30:47 +0000 (10:30 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:30:31 +0000 (10:30 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:30:16 +0000 (10:30 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:29:58 +0000 (10:29 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:29:39 +0000 (10:29 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:29:25 +0000 (10:29 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:28:54 +0000 (10:28 -0500)]
Cosmetic: Avoid explicit state variables

Fold it into its single user.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:28:25 +0000 (10:28 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:01:11 +0000 (10:01 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explict state variables
Matthias Clasen [Sat, 14 Nov 2015 14:56:12 +0000 (09:56 -0500)]
Cosmetic: Avoid explict state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid an explicit state variable
Matthias Clasen [Sat, 14 Nov 2015 14:51:37 +0000 (09:51 -0500)]
Cosmetic: Avoid an explicit state variable

Using the state of the context makes it more obviously correct.

10 years agolistbox: Cosmetic cleanup
Matthias Clasen [Sat, 14 Nov 2015 14:49:49 +0000 (09:49 -0500)]
listbox: Cosmetic cleanup

We don't cast these arguments anywhere else, so lets not do here
either.

10 years agowindow: Don't invalidate cssnode during get_preferred_width()
Benjamin Otte [Sat, 14 Nov 2015 17:28:34 +0000 (18:28 +0100)]
window: Don't invalidate cssnode during get_preferred_width()

Getting the shadow width must not call gtk_style_context_set_state()
because that will invalidate the node and cause a style-updated emission
which can cause gtk_widget_queue_resize() calls.

And calling queue_resize() from get_preferred_size() essentially means
the size is permanently invalid because you invalidate it while
querying it.

This causes flickering of windows when going from/to backdrop state. To
avoid this we either need to fix the theme to not have different shadow
sizes in those cases or we need to ensure the window doesn't flicker in
the first place.

10 years agoUs ... instead of … for zh_CN
YunQiang Su [Sat, 14 Nov 2015 13:59:24 +0000 (21:59 +0800)]
Us ... instead of …  for zh_CN

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 14 Nov 2015 07:50:47 +0000 (07:50 +0000)]
Updated Portuguese translation

10 years agoGtkShortcutsShortcut: Add missing word
Timm Bäder [Fri, 13 Nov 2015 11:37:59 +0000 (12:37 +0100)]
GtkShortcutsShortcut: Add missing word

10 years agoGtkGrid: Remove invalid return annotation
Timm Bäder [Fri, 13 Nov 2015 11:36:03 +0000 (12:36 +0100)]
GtkGrid: Remove invalid return annotation

10 years agogtkimcontextsimple.c: Use X11_DATA_PREFIX only on X11/Wayland
Chun-wei Fan [Thu, 12 Nov 2015 12:20:36 +0000 (20:20 +0800)]
gtkimcontextsimple.c: Use X11_DATA_PREFIX only on X11/Wayland

Only use the hard-coded build-time path given by X11_PREFIX on X11 and
Wayland where a X11 package is normally available.  On other platforms,
get the datadir of the running system and mimic the behavior by
constructing the path dynamically.  This avoids hardcoding the path for
searching for compose tables where we want to have relocatability.

This fixes the build on Windows/MSVC as well, where we don't normally have
any X11 packages available.

https://bugzilla.gnome.org/show_bug.cgi?id=757984

10 years agocheck menu item: Fix a typo
Matthias Clasen [Fri, 13 Nov 2015 12:11:23 +0000 (07:11 -0500)]
check menu item: Fix a typo

It is check, not checl. Pointed out by Giovanni Campagna in
https://bugzilla.gnome.org/show_bug.cgi?id=757968

10 years agoAdwaita: Fix styling of selected rows in treeviews
Matthias Clasen [Fri, 13 Nov 2015 12:07:19 +0000 (07:07 -0500)]
Adwaita: Fix styling of selected rows in treeviews

This broke in some of the recent selection handling changes.

10 years agofilechooser: ignore double clicks on the selected item
Paolo Borelli [Wed, 11 Nov 2015 13:43:55 +0000 (14:43 +0100)]
filechooser: ignore double clicks on the selected item

Since we are now interpreting button press events and
make our own double-click determination, we should not
handle double-click events that are generated by GDK.

https://bugzilla.gnome.org/show_bug.cgi?id=757950

10 years agowin32: do not use g_clear_pointer also on the clipboard window
Ignacio Casal Quinteiro [Fri, 13 Nov 2015 11:58:45 +0000 (12:58 +0100)]
win32: do not use g_clear_pointer also on the clipboard window

A follow up on the previous patch. We should use DestroyWindow
directly since it has a different calling convention than
the expected callback for g_clear_pointer

10 years agowin32: do not use g_clear_pointer to destroy the window
Ignacio Casal Quinteiro [Fri, 13 Nov 2015 11:54:54 +0000 (12:54 +0100)]
win32: do not use g_clear_pointer to destroy the window

DestroyWindow expects a different calling convenction so
we endup getting an error at runtime

10 years agoUpdate testlevelbar
Matthias Clasen [Fri, 13 Nov 2015 11:40:28 +0000 (06:40 -0500)]
Update testlevelbar

This test needs some small updates after the recent changes
to levelbar styling.

10 years agonotebook: Chain up in direction_changed
Matthias Clasen [Fri, 13 Nov 2015 11:39:57 +0000 (06:39 -0500)]
notebook: Chain up in direction_changed

We do this everywhere else.

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Fri, 13 Nov 2015 09:51:07 +0000 (11:51 +0200)]
Updated Hebrew translation

10 years agoHighContrast: Update levelbar styling
Matthias Clasen [Fri, 13 Nov 2015 06:05:30 +0000 (01:05 -0500)]
HighContrast: Update levelbar styling

Adapt to changes in the previous commit.

10 years agoAdwaita: Update levelbar styling
Matthias Clasen [Fri, 13 Nov 2015 05:56:54 +0000 (00:56 -0500)]
Adwaita: Update levelbar styling

Adapt to the changes in the previous commit. In particular, fix
the handling of low and high offsets. Anything below the low offset
gets warning color, anything below high gets selected background,
and anything below the new full offset gets success color.

10 years agolevelbar: Use more CSS nodes
Matthias Clasen [Fri, 13 Nov 2015 05:55:28 +0000 (00:55 -0500)]
levelbar: Use more CSS nodes

Create as many CSS nodes as we're rendering blocks on the screen.

10 years agotextbuffer: nicer get_iter functions, without return values
Sébastien Wilmet [Thu, 12 Nov 2015 16:43:32 +0000 (17:43 +0100)]
textbuffer: nicer get_iter functions, without return values

Avoid crashes when passing an invalid location to a
gtk_text_buffer_get_iter_at_*() function.

A first attempt added boolean return values to know if @iter has been set to
the exact location, but it breaks Python and JS bindings because the out
parameter is already a return value in those languages.

Unit tests are added.

https://bugzilla.gnome.org/show_bug.cgi?id=735341

10 years agowin32: destroy clipboard notification window on dispose
Ignacio Casal Quinteiro [Thu, 12 Nov 2015 15:42:51 +0000 (16:42 +0100)]
win32: destroy clipboard notification window on dispose

The clipboard uses a hidden window to get some specific events.
The window was created but never destroyed on dispose.

10 years agoupdate zh_CN translation
Mingye Wang (Arthur2e5) [Thu, 12 Nov 2015 15:17:28 +0000 (23:17 +0800)]
update zh_CN translation

10 years agowin32: chain up on display dispose
Ignacio Casal Quinteiro [Thu, 12 Nov 2015 14:59:43 +0000 (15:59 +0100)]
win32: chain up on display dispose

10 years agoRevert "textbuffer: nicer get_iter functions"
Matthias Clasen [Thu, 12 Nov 2015 14:57:10 +0000 (09:57 -0500)]
Revert "textbuffer: nicer get_iter functions"

This reverts commit a9a1c00cc9255ee9a7f73695f69abe172cde7bfa.

Unfortunately, adding the boolean return broke both the python
and javascript bindings, since they now return a tuple consisting
of the boolean and the out argument.

10 years agogtktestutils.c: Ensure variables are declared at top of block
Chun-wei Fan [Thu, 12 Nov 2015 12:12:26 +0000 (20:12 +0800)]
gtktestutils.c: Ensure variables are declared at top of block

Fixes build on C89 compilers...

10 years agoMSVC builds: Use /opt:ref for release builds
Chun-wei Fan [Thu, 12 Nov 2015 10:16:33 +0000 (18:16 +0800)]
MSVC builds: Use /opt:ref for release builds

glib-compile-resources have been updated to ensure that the symbols
generated are referred to, so that they will not be optimized out by the
linker in release builds.  We can change from /opt:noref to /opt:ref,
which should improve optimization a bit.

10 years agoMSVC 2010+ builds: Do not explicitly use /LTCG
Chun-wei Fan [Thu, 12 Nov 2015 07:53:47 +0000 (15:53 +0800)]
MSVC 2010+ builds: Do not explicitly use /LTCG

This partially reverts de16a4e.

As we now ensure that items using GResources and GConstructors are always
referenced so that the linker does not optimize them out in a default
Release build, we no longer need to enforce the use of /LTCG, so
/LTCG:incremental will work as well.

10 years agoAdd gtk_native_dialog_destroy()
Alexander Larsson [Wed, 11 Nov 2015 15:06:44 +0000 (16:06 +0100)]
Add gtk_native_dialog_destroy()

Its very easy to get extra references to the NativeDialog so that
when you release your last reference any visible dialog is not
hidden. We handle this by adding a destroy method similar to how
you destroy regular toplevels.

10 years agoGtkNativeDialog: Fix modal handling in gtk_native_dialog_run()
Alexander Larsson [Wed, 11 Nov 2015 14:12:45 +0000 (15:12 +0100)]
GtkNativeDialog: Fix modal handling in gtk_native_dialog_run()

10 years agotooltipwindow: Use a builder UI file
Emmanuele Bassi [Wed, 11 Nov 2015 12:27:07 +0000 (12:27 +0000)]
tooltipwindow: Use a builder UI file

It's not a hugely complicated file, but it's easier to deal with some of
the details of tooltip windows styling if we have a UI file to edit,
instead of source code.

10 years agoAdd autocleanups for GtkShortcutsWindow
Emmanuele Bassi [Tue, 10 Nov 2015 16:24:33 +0000 (16:24 +0000)]
Add autocleanups for GtkShortcutsWindow

10 years agoRemove introspection scanner guards around autocleanups
Emmanuele Bassi [Tue, 10 Nov 2015 15:11:29 +0000 (15:11 +0000)]
Remove introspection scanner guards around autocleanups

They are not needed.

10 years agogtklevelbar: Fix typo
Timm Bäder [Wed, 11 Nov 2015 08:35:31 +0000 (09:35 +0100)]
gtklevelbar: Fix typo

10 years agoHighContrast: Update levelbar styling
Matthias Clasen [Wed, 11 Nov 2015 05:30:24 +0000 (00:30 -0500)]
HighContrast: Update levelbar styling

Adapt to the changes in the previous release.

10 years agoAdwaita: Update levelbar rendering
Matthias Clasen [Wed, 11 Nov 2015 05:26:32 +0000 (00:26 -0500)]
Adwaita: Update levelbar rendering

Adapt to the changes in the previous commit.

10 years agolevelbar: Port to use CSS nodes
Matthias Clasen [Wed, 11 Nov 2015 05:25:24 +0000 (00:25 -0500)]
levelbar: Port to use CSS nodes

Use element names levelbar, trough, block, and some style
classes on the block nodes: .discrete, .continuous, .empty,
.level-low, etc.

10 years agoImprove testlevelbar
Matthias Clasen [Wed, 11 Nov 2015 04:31:33 +0000 (23:31 -0500)]
Improve testlevelbar

Add a switch to toggle between discrete and continuous modes.

10 years agotext util: Avoid creating transient nodes
Matthias Clasen [Wed, 11 Nov 2015 02:59:31 +0000 (21:59 -0500)]
text util: Avoid creating transient nodes

We don't need to add .view - its already added, and shouldn't
really be needed in the first place.

10 years agoHighContrast: Update textview selection styling
Matthias Clasen [Wed, 11 Nov 2015 02:52:45 +0000 (21:52 -0500)]
HighContrast: Update textview selection styling

Use the selection element name.

10 years agoAdwaita: Update textview selection styling
Matthias Clasen [Wed, 11 Nov 2015 02:51:36 +0000 (21:51 -0500)]
Adwaita: Update textview selection styling

Use the selection name.

10 years agotext view: Improve text rendering
Matthias Clasen [Wed, 11 Nov 2015 02:49:42 +0000 (21:49 -0500)]
text view: Improve text rendering

Use the text CSS node for rendering text, and the selection node
for rendering selected text, avoid gtk_style_context_save, update
states of all CSS nodes, and use the proper states when querying
style properties.

10 years agotextview: Use a CSS node for selection rendering
Matthias Clasen [Wed, 11 Nov 2015 02:18:10 +0000 (21:18 -0500)]
textview: Use a CSS node for selection rendering

Use a CSS node with name selection, like we do for entries
and labels. Unlike those widgets, we currently don't user
gtk_render_background, but just use the background color.
That will require more effort.

10 years agocell view: Add an element name
Matthias Clasen [Wed, 11 Nov 2015 01:45:42 +0000 (20:45 -0500)]
cell view: Add an element name

The element name is...cellview.

10 years agoHighContrast: Update label selection styling
Matthias Clasen [Wed, 11 Nov 2015 01:33:12 +0000 (20:33 -0500)]
HighContrast: Update label selection styling

Adapt to changes in the previous commit.

10 years agoAdwaita: Update label selection styling
Matthias Clasen [Wed, 11 Nov 2015 01:29:31 +0000 (20:29 -0500)]
Adwaita: Update label selection styling

Adapt to the changes in the previous commit.

10 years agolabel: Use a CSS node for selection rendering
Matthias Clasen [Wed, 11 Nov 2015 01:28:10 +0000 (20:28 -0500)]
label: Use a CSS node for selection rendering

This adds new possibilities for themes to render the selection
in fancy ways.

10 years agoentry: Simplify selection rendering
Matthias Clasen [Wed, 11 Nov 2015 01:13:06 +0000 (20:13 -0500)]
entry: Simplify selection rendering

Calling gtk_render_background for each rectangle in the region
leads to suboptimal and sometimes weird results. Getting this
right requires more work in Pango first. Go back to just rendering
a single background, and clip it to the selection region. This
matches what GtkLabel does.

10 years agoinspector: Don't grow horizontally
Matthias Clasen [Tue, 10 Nov 2015 22:36:33 +0000 (17:36 -0500)]
inspector: Don't grow horizontally

Labels in the object tree are application data. Ellipsize them
to avoid growing extremely wide if the data is bogus.

10 years agoinspector: fix a typo
Matthias Clasen [Tue, 10 Nov 2015 22:36:23 +0000 (17:36 -0500)]
inspector: fix a typo

10 years agoHighContrast: Update entry selection styling
Matthias Clasen [Tue, 10 Nov 2015 18:39:10 +0000 (13:39 -0500)]
HighContrast: Update entry selection styling

Adapt to changes in the previous commit.

10 years agoAdwaita: Update entry selection rendering
Matthias Clasen [Tue, 10 Nov 2015 18:37:15 +0000 (13:37 -0500)]
Adwaita: Update entry selection rendering

Adapt to the changes in the previous commit.

10 years agoentry: Use a CSS node for selection rendering
Matthias Clasen [Tue, 10 Nov 2015 18:36:16 +0000 (13:36 -0500)]
entry: Use a CSS node for selection rendering

This adds new possibilities for themes to render the selection
in fancy ways.

10 years agoAdwaita: Update tooltip styling more
Matthias Clasen [Tue, 10 Nov 2015 17:48:40 +0000 (12:48 -0500)]
Adwaita: Update tooltip styling more

Now that tooltips are csd again, the CSS wasn't quite working
anymore.

10 years agogtkwindow: css offset for toplevel only
Olivier Fourdan [Tue, 10 Nov 2015 11:00:48 +0000 (12:00 +0100)]
gtkwindow: css offset for toplevel only

At the time gtk_window_move() or gtk_window_resize() get called, there
is no way to predict if a popup window will actually draw its shadow, so
applying an offset in this case may end up with a wrong size or
positioning for such windows.

Changing the logic in gtk_window_should_use_csd() as previously done to
address that issue will cause some other breakage as popup windows may
not draw a shadow but still need CSD.

So best is to actually apply client side decorations offset for regular,
top level windows only. This is actually a lot simpler and safer and
less likely to cause additional breakage.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618

10 years agoAdwaita: update tooltip styling
Matthias Clasen [Tue, 10 Nov 2015 17:26:05 +0000 (12:26 -0500)]
Adwaita: update tooltip styling

Adapt to the changes in the previous commit. Note that tooltip
appearance is currently affected by tooltips having lost their
csd nature, due to a regression.

10 years agoMove GtkAccelMap autocleanup to the class header
Emmanuele Bassi [Tue, 10 Nov 2015 14:12:35 +0000 (14:12 +0000)]
Move GtkAccelMap autocleanup to the class header

10 years agoRecursively move autocleanups to their header files
Emmanuele Bassi [Tue, 10 Nov 2015 14:11:04 +0000 (14:11 +0000)]
Recursively move autocleanups to their header files

Start from GtkAccelLabel and walk the tree downwards.

10 years agoMove GtkAboutDialog autocleanup to the class header
Emmanuele Bassi [Tue, 10 Nov 2015 14:08:07 +0000 (14:08 +0000)]
Move GtkAboutDialog autocleanup to the class header

10 years agoMove GtkDialog autocleanup to the class header
Emmanuele Bassi [Tue, 10 Nov 2015 14:07:41 +0000 (14:07 +0000)]
Move GtkDialog autocleanup to the class header

10 years agoStart recursively moving autocleanups macros to their headers
Emmanuele Bassi [Tue, 10 Nov 2015 13:59:36 +0000 (13:59 +0000)]
Start recursively moving autocleanups macros to their headers

* Cover letter

Having a single header file for all autocleanups definitions was a
reasonable stop-gap measure, but now GTK+ is starting to use G_DECLARE_*
macros. This means that every class using a G_DECLARE_* macro will need
to include "gtk.h" to avoid compiler warnings, which is not acceptable.

By moving the G_DEFINE_AUTO* use to the header that defines the type we
allow using the G_DECLARE_* macros without sacrificing the ability to
include only the needed files when deriving from a class.

* Commit

This commit changes all includes relative to GtkWindow to define their
own autocleanup macros.

10 years agoOnly include the necessary headers in GtkPlacesViewRow
Emmanuele Bassi [Tue, 10 Nov 2015 13:49:11 +0000 (13:49 +0000)]
Only include the necessary headers in GtkPlacesViewRow

When compiling inside GTK we also use the GTK_COMPILATION guard, as the
GtkPlacesView and GtkPlacesViewRow widgets are shared with Nautilus.

10 years agoMove GtkListBox g_autoptr macros to the class header
Emmanuele Bassi [Tue, 10 Nov 2015 13:48:31 +0000 (13:48 +0000)]
Move GtkListBox g_autoptr macros to the class header

This allows GtkPlacesViewRow to use G_DECLARE_FINAL_TYPE without having
to include gtk.h.

10 years agoRemove an unused variable declaration
Emmanuele Bassi [Tue, 10 Nov 2015 13:36:29 +0000 (13:36 +0000)]
Remove an unused variable declaration

And the compiler warning that comes with it.

10 years agoMove GtkWindow g_autoptr macros in the class header
Emmanuele Bassi [Tue, 10 Nov 2015 13:34:33 +0000 (13:34 +0000)]
Move GtkWindow g_autoptr macros in the class header

Otherwise we won't be able to use G_DECLARE_* macros internally to GTK
without generating warnings, or without including gtk.h itself.

10 years agodocs: Ignore GtkTooltipWindow's private header file
Emmanuele Bassi [Tue, 10 Nov 2015 13:24:05 +0000 (13:24 +0000)]
docs: Ignore GtkTooltipWindow's private header file

10 years agoFix an oversight
Matthias Clasen [Tue, 10 Nov 2015 11:34:15 +0000 (06:34 -0500)]
Fix an oversight

We must set the construct-only "type" to GTK_WINDOW_POPUP, otherwise
this ends upo being a regular toplevel.

10 years agoUse CSS node name for GtkTooltipWindow
Emmanuele Bassi [Sun, 8 Nov 2015 17:10:00 +0000 (17:10 +0000)]
Use CSS node name for GtkTooltipWindow

Instead of a style class.

10 years agoAdd GtkTooltipWindow private sub-class
Emmanuele Bassi [Sun, 8 Nov 2015 15:46:23 +0000 (15:46 +0000)]
Add GtkTooltipWindow private sub-class

GtkTooltip does a lot of set up on the GtkWindow it uses internally. We
should move that code to a separate class to keep it contained.

10 years agoprint dialog: Avoid gtk_style_context_save
Matthias Clasen [Tue, 10 Nov 2015 12:45:56 +0000 (07:45 -0500)]
print dialog: Avoid gtk_style_context_save

There was one more call to gtk_style_context_save here that I
overlooked. We can get rid of it by just setting the element name
on the drawing area.

10 years agoflowbox: Add a diagram to CSS documentation
Matthias Clasen [Tue, 10 Nov 2015 12:39:40 +0000 (07:39 -0500)]
flowbox: Add a diagram to CSS documentation

10 years agoiconview: Add a diagram to CSS documentation
Matthias Clasen [Tue, 10 Nov 2015 12:37:25 +0000 (07:37 -0500)]
iconview: Add a diagram to CSS documentation

10 years agotreeview: Add a diagram to CSS documentation
Matthias Clasen [Tue, 10 Nov 2015 12:36:41 +0000 (07:36 -0500)]
treeview: Add a diagram to CSS documentation

10 years agoHighContrast: Update treeview rubberband styling
Matthias Clasen [Tue, 10 Nov 2015 12:31:32 +0000 (07:31 -0500)]
HighContrast: Update treeview rubberband styling

Adapt to the changes in the previous commit.

10 years agoAdwaita: Update treeview rubberband styling
Matthias Clasen [Tue, 10 Nov 2015 12:30:29 +0000 (07:30 -0500)]
Adwaita: Update treeview rubberband styling

Adapt to the changes in the previous commit.

10 years agotreeview: Use a CSS node for rubberband drawing
Matthias Clasen [Tue, 10 Nov 2015 12:29:54 +0000 (07:29 -0500)]
treeview: Use a CSS node for rubberband drawing

Use a CSS node with name rubberband to draw the rubberband
selection.

10 years agoTextView: Use saner coordinate space in draw_layer.
Alexander Larsson [Mon, 9 Nov 2015 21:18:05 +0000 (22:18 +0100)]
TextView: Use saner coordinate space in draw_layer.

When I added the draw_layer vfunc it accidentally got passed a cairo_t
that was configured with to draw in the viewport coordinate space (rather
than the buffer coordinate space). This makes things unnecessary complex,
because you have to convert between the two.

The pixel cache is shared between the text and the layers, so there is
no way to use draw_layer to get a stationary overlay effect. Thus it makes
much more sense for the draw_layer vfunc to draw in the buffer space.

Just changing this would break ABI for existing code, so this is fixed
by adding new layer types and deprecating the old ones.

Also, we use the new layer types to fix gtk3-widget-factory.

https://bugzilla.gnome.org/show_bug.cgi?id=757856

10 years agoForgotten file
Matthias Clasen [Tue, 10 Nov 2015 05:55:57 +0000 (00:55 -0500)]
Forgotten file

This change belongs to the iconview rubberband changes.

10 years agoHighContrast: Update flowbox rubberband styling
Matthias Clasen [Tue, 10 Nov 2015 05:55:29 +0000 (00:55 -0500)]
HighContrast: Update flowbox rubberband styling

Adapt to the changes in the previous commit.

10 years agoAdwaita: Update flowbox rubberband styling
Matthias Clasen [Tue, 10 Nov 2015 05:52:09 +0000 (00:52 -0500)]
Adwaita: Update flowbox rubberband styling

Adapt to the changes in the previous commit.

10 years agoflowbox: Use a CSS node for rubberband drawing
Matthias Clasen [Tue, 10 Nov 2015 05:50:42 +0000 (00:50 -0500)]
flowbox: Use a CSS node for rubberband drawing

Use a CSS node with name rubberband to draw the rubberband
selection.

10 years agoHighContrast: Update rubberband styling
Matthias Clasen [Tue, 10 Nov 2015 05:30:39 +0000 (00:30 -0500)]
HighContrast: Update rubberband styling

Adapt to the changes in the previous commit.

10 years agoAdwaita: Update rubberband styling
Matthias Clasen [Tue, 10 Nov 2015 05:28:46 +0000 (00:28 -0500)]
Adwaita: Update rubberband styling

Adapt to the changes in the previous commit.

10 years agoiconview: Use a CSS node for rubberband drawing
Matthias Clasen [Tue, 10 Nov 2015 05:25:19 +0000 (00:25 -0500)]
iconview: Use a CSS node for rubberband drawing

Use a CSS node with name rubberband to draw the rubberband
selection.

10 years agoHighContrast: Update text handle styling
Matthias Clasen [Tue, 10 Nov 2015 04:49:29 +0000 (23:49 -0500)]
HighContrast: Update text handle styling

Adapt to the changes in the previous release.

10 years agoAdwaita: Update text handle styling
Matthias Clasen [Tue, 10 Nov 2015 04:47:08 +0000 (23:47 -0500)]
Adwaita: Update text handle styling

Adapt to the changes in the previous commit.

10 years agoDocument text handle styling
Matthias Clasen [Tue, 10 Nov 2015 04:45:29 +0000 (23:45 -0500)]
Document text handle styling

Since GtkTextHandle is private, document text handle style
classes in the GtkEntry and GtkTextView documentation.

10 years agotext handle: Port to CSS nodes
Matthias Clasen [Tue, 10 Nov 2015 04:33:54 +0000 (23:33 -0500)]
text handle: Port to CSS nodes

Use cursor-handle as the element name for the CSS node that
is used to render text the selection handles.